package com.yd.domain.business;

import java.util.Date;

/**
 * @author zy
 * @create 2018-03-07 9:28
 * @desc 购物车
 **/
public class ShoppingCart extends Goods{
    private String userId;//用户id
    private String goodsId;//商品id
    private String goodsWeightId;//商品规格
    private Date addTime=new Date();//加入时间
    private int number=0;//数量
    private String content;//备注信息

    private int minWeight;
    private int maxWeight;
    private float jgf;//加工费


    public int getMinWeight() {
        return minWeight;
    }

    public void setMinWeight(int minWeight) {
        this.minWeight = minWeight;
    }

    public int getMaxWeight() {
        return maxWeight;
    }

    public void setMaxWeight(int maxWeight) {
        this.maxWeight = maxWeight;
    }

    public float getJgf() {
        return jgf;
    }

    public void setJgf(float jgf) {
        this.jgf = jgf;
    }

    public String getGoodsWeightId() {
        return goodsWeightId;
    }

    public void setGoodsWeightId(String goodsWeightId) {
        this.goodsWeightId = goodsWeightId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "userId='" + userId + '\'' +
                ", goodsId='" + goodsId + '\'' +
                ", goodsWeightId='" + goodsWeightId + '\'' +
                ", addTime=" + addTime +
                ", number=" + number +
                ", content='" + content + '\'' +
                ", minWeight=" + minWeight +
                ", maxWeight=" + maxWeight +
                ", jgf=" + jgf +
                '}';
    }
}
